<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?php echo $view_title?></title>
	<link rel=stylesheet href='./template/<?php echo $OJ_TEMPLATE?>/<?php echo isset($OJ_CSS)?$OJ_CSS:"hoj.css" ?>' type='text/css'>
</head>
<body>
<div>
	<?php require_once("oj-header.php");?>

	<form class="form-horizontal col-sm-6 col-sm-offset-2" action="modify.php" method="post">
	<br><br>
	<center>
	
	    <div class="form-group">
        <label class="col-sm-5 control-label">UID</label>
        <div class="col-sm-7">		    
			<input class="form-control" id="disabledInput" type="text" placeholder="<?php echo $_SESSION['user_id']?>" disabled></div>      
			<?php require_once('./include/set_post_key.php');?>
		</div>
	    <div class="form-group">
        <label class="col-sm-5 control-label">真实姓名</label>
        <div class="col-sm-7">
            <input class="form-control" name="nick" type="text" value="<?php echo htmlspecialchars($row->nick)?>"/></div>
        </div>
		<div class="form-group">
        <label class="col-sm-5 control-label">旧密码</label>
        <div class="col-sm-7">
            <input class="form-control" name="opassword" type="password" /></div>
        </div>
		<div class="form-group">
        <label class="col-sm-5 control-label">新密码</label>
        <div class="col-sm-7">
            <input class="form-control" name="npassword" type="password" /></div>
        </div>
		<div class="form-group">
        <label class="col-sm-5 control-label">重复新密码</label>
        <div class="col-sm-7">
            <input class="form-control" name="rptpassword" type="password" /></div>
        </div>
		<div class="form-group">
        <label class="col-sm-5 control-label">学校</label>
        <div class="col-sm-7">
            <input class="form-control" name="school" type="text" value="<?php echo htmlspecialchars($row->school)?>"/></div>
        </div>
		<div class="form-group">
        <label class="col-sm-5 control-label">邮箱</label>
        <div class="col-sm-7">
            <input class="form-control" name="email" type="text" value="<?php echo htmlspecialchars($row->email)?>"/></div>
        </div>
		
		<div class="form-group">
        <div class="col-sm-offset-5 col-sm-7">
            <input type="submit" class="btn btn-primary col-sm-8" value="提交"/>
        </div>
        </div>

	</center>
	</form>
	<br>
	<!--a href=export_ac_code.php>Download All AC Source</a-->
	<br>
	
	

</div><!--end wrapper-->

<div id=foot>
	<?php require_once("oj-footer.php");?>
</div><!--end foot-->



</body>
</html>
